
#include <iostream>
#include <cctype>
#include "stdafx.h"
#include "dice.h"
#include <conio.h>
#include "string.h"


using namespace std;

int main()
{
	dice kast;
	char ch;
	int m, n;

	cout <<"Press any key to roll the dice!" <<endl << "Press 'k' to exit " << endl;

	do
	{
		ch = _getch();

		system("cls");
		
		m = kast.getNumber();
		n = kast.getNumber();

		kast.printDice(m);
		kast.printDice(n);

	}while( ch != 'k' );

	
	return 0;
}